<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ul2tree</title>
<link rel="stylesheet" type="text/css" href="/css/reset.css" />
<link rel="stylesheet" type="text/css" href="/css/common.css" />
<script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/js/ul2tree/ul2tree.0.1.5.js"></script>
<script type="text/javascript" src="/js/json.min.js"></script>
</head>
<body >
	<div id="div_tree" class="float_left width_200"></div>
	<iframe id="advertiseCatalog_edit" class="float_left edit_frame" name="advertiseCatalog_edit"></iframe>
	<script>
	var url = "/admin/advertiseCatalog/json.dhtml";
	$(document).ready(function(){
		loadMenuTree();
	});
	
	function loadMenuTree(){
		$.ul2tree({
			obj:$("#div_tree"),
			url:url,
			imageRoot :"/js/ul2tree/images/",
			isLineImg :true,
			clickFun : openPage
		});
	}
	
	function openPage(json, obj){
		$("#advertiseCatalog_edit").attr("src", "/admin/advertise/page.dhtml?advertise.catalogId=" + json.id);
	}
</script>
</body>
</html>